/*
 * Copyright 2007. Mount Sinai Hospital, Toronto, Canada.
 * 
 * Licensed under the GNU Lesser General Public License, Version 2. You
 * can find a copy of the license at:
 * 
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
 * 
 * IN NO EVENT SHALL MOUNT SINAI HOSPITAL BE LIABLE TO ANY PARTY FOR DIRECT, 
 * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST 
 * PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, 
 * EVEN IF MOUNT SINAI HOSPITAL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
 * DAMAGE.
 * 
 * MOUNT SINAI HOSPITAL SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF 
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND 
 * ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". 
 * MOUNT SINAI HOSPITAL HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, 
 * UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
 */
package com.sinai.mshab.client;

public class MSHABConfig {

	/**
	 * Error message when null values are passed as parameters to functions.
	 */
	public static final String MSHAB_ERROR_NULL_ARGS = "All arguments must "
			+ "be instantiated.";

	/**
	 * Error message when emtpy values are passed as parameters to functions.
	 */
	public static final String MSHAB_ERROR_EMPTY_ARGS = "All arguments cannot "
			+ "be empty.";

	/**
	 * Error message when emtpy or null values are passed as parameters to
	 * functions.
	 */
	public static final String MSHAB_ERROR_NULL_EMPTY_ARGS = "All arguments must "
			+ "be instantiated and non-empty.";

	/**
	 * Error message that should appear when the table name is empty.
	 */
	public static final String MSHAB_ERROR_INVALID_TABLE = "The table name "
			+ "must be instantiated and cannot be empty.";

	/**
	 * Error message that should appear when the field name is empty.
	 */
	public static final String MSHAB_ERROR_INVALID_FIELD = "The field name "
			+ "must be instantiated and cannot be empty.";

	/**
	 * The error message that should appear when a null
	 * {@link PreparedStatement} is being executed.
	 */
	public static final String MSHAB_ERROR_EXECUTE_NULL = "Cannot execute "
			+ "a null PreparedStatement.";

	/**
	 * Error message that appears when an illegal SQL operator is passed to a
	 * function that uses SQL operators.
	 */
	public static final String MSHAB_ERROR_INVALID_SQL_OPERATOR = "Invalid "
			+ "SQL operator: ";

	/**
	 * The error message that appears when getSQL is called on an empty
	 * DbFilterGroup.
	 */
	public static final String MSHAB_ERROR_EMPTY_GROUP = "Cannot retrieve "
			+ "SQL from an empty DbFilterGroup";

	/**
	 * Returns the CSS style to be used with {@link DescriptionLabel}s.
	 * 
	 * @return the CSS style to be used with {@link DescriptionLabel}s.
	 */
	public static String getCSSDescriptionLabel() {
		return "mshab-descriptionLabel";
	}

	/**
	 * Returns the CSS style to be used with {@link ErrorLabel}s.
	 * 
	 * @return the CSS style to be used with {@link ErrorLabel}s.
	 */
	public static String getCSSErrorLabel() {
		return "mshab-errorLabel";
	}
}
